function _truste_eu(){truste=self.truste||{};truste.eu=truste.eu||{};truste.eu.version="v3.12-24";truste.eu.COOKIE_DAX_NAME="notice_dax_signature";truste.eu.COOKIE_PREF_NAME="notice_preferences";truste.eu.COOKIE_CATEGORY_NAME="optout_domains";truste.util=truste.util||{};truste.util.getUniqueID=function(){return"truste_"+Math.random()};truste.util.getIntValue=function(h){h=parseInt(h);return isNaN(h)?null:h};truste.util.getScriptElement=function(h,k,a){"string"==typeof h&&(h=RegExp(h));"string"==typeof a&& (a=RegExp(a));if(!(h instanceof RegExp&&("undefined"==typeof a||a instanceof RegExp)))return null;for(var d=self.document.getElementsByTagName("script"),b,c,g=d.length;0self.location.hostname.indexOf(".")||0';if(a.closebtn)for(var g in a.closebtn)c.style[g]= a.closebtn[g];else c.style.position="absolute",c.style.top="-20px",c.style.right="-20px";truste.util.addListener(c,"keydown",function(a){a||(a=window.event);var l=a.which||a.keyCode;if(9==l&&!a.shiftKey)a.preventDefault?a.preventDefault():event.returnValue=!1,b&&b.focus();else if(13==l||32==l)a.preventDefault?a.preventDefault():event.returnValue=!1,(c.firstElementChild||c.children[0]).click()});b&&(truste.util.addListener(b,"keydown",function(a){a||(a=window.event);9==(a.which||a.keyCode)&&a.shiftKey&& (a.preventDefault?a.preventDefault():event.returnValue=!1,(c.firstElementChild||c.children[0]).focus())}),b.appendChild(c));truste.util.trace("Adding the close button")}};truste.eu.clickListener=function(a,d){var b=truste.eu.bindMap;if(!(b instanceof Object))return truste.eu.error("click listener was called but bindings are unavailble");var c=truste.util.getIntValue(b.prefCookie),g="notice";switch(truste.util.getIntValue(a)){case 1:g="prefmgr";break;case 2:g="advanced";break;default:null!=c&&0<=c&& (g="prefmgr")}truste.eu.prefview(b,g);d||truste.eu._dispatchEvent("click");return g};truste.eu.toggleCloseButton=function(a,d){if(a&&a.closebtnid){var b=self.document.getElementById(a.closebtnid);b&&(b.style.visibility=null!=d&&"true"==d?"visible":"hidden")}};truste.eu.resizeFrame=function(a,d,b){truste.util.trace("resizing the iframe to:",a,d,b);a=self.document.getElementById(truste.eu.popdiv2);b=parseInt(b);d=parseInt(d);!isNaN(b)&&(a&&a.style)&&(a.style.marginLeft=b+"px");d&&(a&&a.style)&&(a.style.height= d+"px",(a=self.document.getElementById(truste.eu.popframe))&&a.style&&(a.style.height=d+"px"),(a=self.document.getElementById(truste.eu.popdiv3))&&a.style&&(a.style.height=d+"px"))};truste.eu.prefclosebutton=function(){truste.eu.prefclose()&&truste.eu._dispatchEvent("close")};truste.eu.prefclose=function(){try{if(pop2=(pop=self.document.getElementById(truste.eu.popdiv))&&self.document.getElementById(truste.eu.popdiv2)){pop.parentNode.removeChild(pop);pop2.parentNode.removeChild(pop2);var a=self.document.getElementById(truste.eu.outerdiv); a&&a.parentNode.removeChild(a);try{for(var d=self.document.getElementsByTagName("object"),a=0;ad&&(d=b);return d};truste.eu.onBeforeUnload=function(a){return"Please allow optouts to finish before navigating out of the page!"};truste.eu.showThrobber= function(){var a=self.document.getElementById("truste.eu.throbber");a||(a=self.document.createElement("div"),a.innerHTML=' Processing Opt-outs',a.id="truste.eu.throbber",a.setAttribute("style","position: fixed;bottom: 0;right: 20px; background: white; border:1px solid #dddddd; border-bottom:none; font:10px Arial,sans-serif; color:#676767; padding:5px 10px;")); self.document.getElementsByTagName("body")[0].appendChild(a);self.onbeforeunload||(self.onbeforeunload=truste.eu.onBeforeUnload)};truste.eu.hideThrobber=function(a){(a||(a=self.document.getElementById("truste.eu.throbber")))&&a.parentNode&&a.parentNode.removeChild(a);self.onbeforeunload==truste.eu.onBeforeUnload&&(self.onbeforeunload=null)};truste.eu.showCM=function(a){try{var d,b;a="false"==a?"hidden":a?"block":"hidden";if(b=(d=self.document.getElementById(truste.eu.popdiv))&&self.document.getElementById(truste.eu.popdiv2))return d.style.visibility= a,b.style.visibility=a,!0}catch(c){truste.eu.error("Error showing CM",c)}return!1};truste.eu.error=function(a,d,b){b=b||{};b.mod="eu";b.domain=b.domain||truste.eu.bindMap&&truste.eu.bindMap.domain||void 0;b.caller=self.location.hostname;b.path=self.location.pathname;truste.util.error(a,d,b)};truste.eu.icon={};truste.eu.icon.make=function(a){if(!truste.eu.prefButton){var d=truste.eu.bindMap,b=truste.eu.prefButton=self.document.createElement("a");truste.util.addListener(b,"click",a);b.id=truste.eu.iconid= ("icon-id"+Math.random()).replace(".","");b.tabIndex="0";b.setAttribute("role","button");truste.util.addListener(b,"keydown",function(a){a||(a=window.event);var d=a.which||a.keyCode;if(13==d||32==d)a.preventDefault?a.preventDefault():event.returnValue=!1,b.click()});"true"==d.text&&d.icon?(b.style.cursor="pointer",b.innerHTML=d.icon):(b.innerHTML='',a=d.assetServerURL+(d.cookiePreferenceIcon||d.language+"-cookiepreferencestext.png"), b.firstChild.src?"en"!=d.language&&b.firstChild.src==a?b.firstChild.src=d.assetServerURL+d.cookiePreferenceIcon.substring(3):(b.style.cursor="pointer",b.innerHTML=d.icon):(b.firstChild.src=a,b.firstChild.alt="Cookie Preference"))}};truste.eu.icon.show=function(){var a=truste.eu.prefButton;truste.eu.caIcon?(truste.eu.caIcon.appendChild(a),truste.eu.caIcon.setAttribute("consent",truste.eu.bindMap.prefCookie)):truste.eu.jsNode1&&truste.eu.jsNode1.parentNode.insertBefore(a,truste.eu.jsNode1)};truste.eu.icon.initialize= function(){try{var a=self.document.createElement("style");a.type="text/css";(a.sheet||{}).insertRule?a.sheet.insertRule("truste_hidden{visibility:hidden;}",0):(a.styleSheet||a.sheet).addRule("truste_hidden","visibility:hidden;");self.document.getElementsByTagName("head")[0].appendChild(a)}catch(d){}var b=truste.eu.bindMap;b.daxCookie=truste.util.readCookie(truste.eu.COOKIE_DAX_NAME,!0);b.prefCookie=truste.util.readCookie(truste.eu.COOKIE_PREF_NAME,!0);truste.eu.caIcon=self.document.getElementById(b.containerId)|| self.document.getElementById("teconsent");a=b.containerId==decodeURI("%5F%4C%42c%4C%42%5F")?null:b.containerId;if(truste.eu.caIcon||!a&&truste.eu.jsNode1&&"HEAD"!=truste.eu.jsNode1.parentNode.nodeName&&(truste.eu.caIcon=truste.eu.jsNode1.parentNode))truste.eu.icon.show();else if(a)var c=setInterval(function(){truste.eu.caIcon=truste.eu.caIcon||self.document.getElementById(b.containerId)||self.document.getElementById("teconsent");truste.eu.caIcon&&(clearInterval(c),truste.eu.icon.show())},100)};truste.eu.SOURCE_SERVER= truste.eu.SOURCE_SERVER||"//consent.truste.com/notice".replace(/^\w{3,5}:/,"");truste.eu.SCRIPT_REGX=truste.eu.SCRIPT_REGX||/\.truste\b.*\bnotice(\.0)?(\.exp)?(\.js)?\b.*\bdomain=/;truste.util.COOKIE_NS="truste.eu.cookie.";truste.eu.JS_REGX=truste.eu.JS_REGX||(truste.eu.bindMap&&truste.eu.bindMap.domain?"domain="+truste.eu.bindMap.domain:void 0);truste.eu.init=function(a,d){var b=truste.eu.bindMap;if(2==d)return truste.util.error("Failed to load binding JS at URL: "+a.src);if(!b)return truste.util.trace("Did not load JS0"); b.backgroundImage="url("+b.assetServerURL+"trans.png)";b.domain&&(truste.eu.noticeLP.domain=b.domain);b.behavior&&(truste.eu.noticeLP.behavior=b.behavior);b.country&&b.language&&(truste.eu.noticeLP.locale=b.country+"-"+b.language);if(truste.eu.noticeLP.pn&&truste.eu.noticeLP.pn.indexOf("-")){var c=truste.eu.noticeLP.pn.split("-");1new Number(RegExp.$1)&&"complete"!=truste.util.readyState()?self.addEventListener("load",c,!1):c();b.apiDefaults&&13(c=a.consentDecision))){d="permit "+c;a="";1==c?(a=g+"-"+e,d+=" required"):2==c&&(a=e,d+=" functional");c=b.location.hostname;g=!!c.match(/^\d{0,3}\.\d{0,3}\.\d{0,3}\.\d{0,3}$/)||"localhost"==c;c="; Path=/; Domain="+(this.binfo&&c.indexOf(this.binfo.domain)+1&&"."+this.binfo.domain||g&&c||"."+c.replace(/([^\.]*\.)?([^\.]+\.[^\.]+)/,"$2"))+"; Max-Age=31536000";var f=(f=b.document.cookie.match(/\bcmapi_cookie_privacy=[\w ]+\b/))&& f[1];f!=a&&(b.document.cookie="cmapi_gtm_bl="+a+c,b.document.cookie="cmapi_cookie_privacy="+d+c,d=b[this.binfo&&this.binfo.dl||"dataLayer"])&&(d.push({"gtm.blacklist":a}),!f&&d.push({event:"cookie_prefs_set"}))}};c.tconsole={};c.tconsole.isDebug=function(){return null!=(b.PrivacyManagerAPI||d).debug?(b.PrivacyManagerAPI||d).debug:0>b.location.hostname.indexOf(".")||0b.location.hostname.indexOf(r)&&(r=null));var t=new Date;t.setDate(395);var u="; expires="+(c?t.toGMTString():"Thu, 01 Jan 1970 00:00:01 GMT")+ "; path=/"+(r?"; domain="+r:"");b.document.cookie=a+"="+encodeURIComponent(c)+u;if(g)if(c)d&8||(c=this.cheapJSON({name:a,value:c,expires:t.getTime()})),b.localStorage.setItem(e+a,c);else{b.localStorage.removeItem(e+a);try{delete b.localStorage[e+a]}catch(w){}}}catch(v){this.tconsole.error("error with getStorage",{name:a,value:c},v)}return null};c.sendPost=function(a,c){if(b.postMessage&&a&&a.source&&c){"object"==typeof c&&(c=this.cheapJSON(c));var d=a.origin||a.domain;"null"!=d&&d||(d="*");this.tconsole.log("responding to ("+ d+") message : "+c);c&&a.source.postMessage(c,d)}};c.init=function(a,b,c){if(!this._hasLoadedPrefs){b=b||this.fake;try{a&&"string"==typeof a&&(a=this.parseJSON(a));this.tconsole.log("initing with object: ",a);if(a){for(var d in b)b[d]=a[d]||b[d];for(d in this.binfo)this.binfo[d]=a[d]||this.binfo[d];a.blacklist instanceof Array&&(this.blacklist=this.blacklist.concat(a.blacklist))}c&&this.loadOldPrefs&&this.loadOldPrefs(b)}catch(e){this.tconsole.error("Error initing: ",b,e)}}};c.messageListener=function(a){var b, d=a.data&&c.parseJSON(a.data);if(d&&(b=d.PrivacyManagerAPI||c.handleCMMessage(d,a)))if(b.capabilities||b.error)c.tconsole.log("got my own message, returning"),c.tconsole.log(a);else if(b.timestamp&&b.action)try{c.tconsole.log("GOT VALID MESSAGE: "+a.data);var g=c.processMessage(b,a);if(g){for(var e in g)b[e]=g[e];d.PrivacyManagerAPI&&c.sendPost(a,d)}}catch(f){c.caddy=null,b.from=a.origin||a.domain,c.tconsole.error("TRUSTe Consent Manager API unknown error.",b,f),c.sendPost(a,{PrivacyManagerAPI:{error:"An unknown error occurred: "+ f.toString()}})}else b.from=a.origin||a.domain,c.tconsole.error("got invalid postmessage call, missing ts or action",b),c.sendPost(a,'{"PrivacyManagerAPI":{"error":"API Object missing required fields"}}')};d.init=function(a,b){c.init(a,null,b)};b.PREF_MGR_API_DEBUG=c;if(b.postMessage){a=b.window;try{for(;a!=a.parent&&a.parent.document;)a=a.parent}catch(g){}a.addEventListener?(a.addEventListener("message",c.messageListener,!1),a!=b&&b.addEventListener("message",c.messageListener,!1)):(a.attachEvent("onmessage", c.messageListener),a!=b&&b.attachEvent("onmessage",c.messageListener))}c.fake.consentDecision=null;c.fake.capabilities.push("getConsentDecision");d.version="3.12";return d}(truste.eu.noticeLP);self.TRUSTE_CMAPI_DEBUG=self.PREF_MGR_API_DEBUG;truste.cma.debug=truste.util.debug;truste.eu.bindMap?truste.eu.init(null,1):truste.util.addScriptElement(truste.eu.SOURCE_SERVER+"?js=1&"+truste.eu.noticeLP._query,truste.eu.init,null,!0)}self._truste&&(self._truste.eu=_truste_eu)||_truste_eu();